#include "mb_cookies.h"

mb_cookies::mb_cookies()
{
    QString cahce_string;

    QFile file("cookies.dat");
    if(file.open(QIODevice::ReadOnly))
    {

    }
}

QList<QNetworkCookie> mb_cookies::allCookies() const
{
    return all_cookies;
}

void mb_cookies::setAllCookies(const QList<QNetworkCookie> &cookieList)
{
    QFile file("cookies.dat");
    if(file.open(QIODevice::WriteOnly))
    {
        /*write all cookies to cache file*/
        QDataStream out(&file);
        out.setVersion(QDataStream::Qt_4_5);        
        //out << cookieList;
    }
}
